#include <iostream>
#include <cmath>
using namespace std;

int main(){
    char arr[62525];
    char tmp;
    int point = 0;
    while(1){
        cin>>tmp;
        arr[point] = tmp;
        point++;
        if(tmp == 'E') break;
    }
    // 11
    int win=0;
	int lose=0;
    for(int i=0;i<point;i++){
        if(arr[i] == 'W') win++;
        else if(arr[i] == 'L') lose++;
        if((abs(win-lose)>=2 && (win>=11 || lose >=11) )|| i==point-1 ){
			cout << win << ":" << lose << endl;
			win=0;
			lose=0;
		}
    }
    cout << endl;
    // 21
    for(int i=0;i<point;i++){
	        if(arr[i] == 'W') win++;
	        else if(arr[i] == 'L') lose++;
	        if((abs(win-lose)>=2 && (win>=21 || lose >=21) )|| i==point-1){
				cout << win << ":" << lose << endl;
				win=0;
				lose=0;
			}
	        
	    }
}
